package org.zeroes.Components;

public class PARAM {
	
	public static final ZSLUParameters $(String encoded){
		ZSLUParameters params = new ZSLUParameters();
		
		String[] items = encoded.split(",");
		for(int i=0;i<items.length;i++){
			
			String[] eachp = items[i].split(":");
			if(eachp[0].equals("I")){
				params.Add("", new ZSSingle<Integer>(Integer.valueOf(eachp[1]).intValue()));
				
			}
			if(eachp[0].equals("S")){
				params.Add("", new ZSSingle<String>(eachp[1]));
				
			}
			if(eachp[0].equals("F")){
				params.Add("", new ZSSingle<Float>(Float.valueOf(eachp[1]).floatValue()));
				
			}
		}
		return params;
	}

}
